﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.ComponentModel;

namespace StateMachine
{
	public class Note : INotifyPropertyChanged
	{
        private Point _location;
        public Point Location { get { return _location; } set { _location = value; NotifyPropertyChanged("Location"); } }
        private string _text;
        public string Text { get { return _text; } set { _text = value; NotifyPropertyChanged("Text"); } }

		public Note()
		{

		}

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(name));
        }

        #endregion
    }
}